package com.chinaunicom.create.builder;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/19 16:06
 * Description:
 */
public class ProductDirectorManager {
    private Builder builder;
    
    public ProductDirectorManager(Builder builder){
        this.builder = builder;
        this.builder.setProduct(new Product());
    }
    
    // 对产品部件进行组装
    public Product decorate(){
        builder.buildWall().builderTv().builderSofa();
        
        return builder.getResult();
    }
}
